<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
<!-- 下面这句用于响应移动设备的改变布局，必须写在前面 -->
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统登录</title>
<!-- Bootstrap3 核心 CSS 文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css">
<!-- 自己定义的风格文件 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/payfin/login.css">
</head>
<body>
	<div class="container">
		<h1 class="sysname">登录</h1>
		<hr class="myhr" />
		<form class="form-signin"
			action="${pageContext.request.contextPath}/iuser/login/check"
			method="post" id="login_form">
			<!-- 下面的div用于显示登录成功或者失败的信息  -->
			<div id="msg-show"></div>
			<label for="inputUsername" class="sr-only">Email地址</label> <input
				type="username" id="inputUsername" class="form-control required"
				name="username" placeholder="请输入用户名" required autofocus /> <label
				for="inputPassword" class="sr-only">密码</label> <input
				type="password" id="inputPassword" class="form-control required"
				name="password" placeholder="请输入密码" required />
			<div class="checkbox">
				<label> <input type="checkbox" value="remember-me">
					记住我
				</label>
			</div>
			<button id="mylogin" class="btn btn-lg btn-success">登入</button>
		</form>
	</div>
	<!-- 添加一个登录按钮 
<button id="qsso-login">qsso登录</button>
-->

	<!-- 引入qsso auth js库 -->
	<script src="https://qsso.corp.qunar.com/lib/qsso-auth.js"></script>
	<script>
		// 调用QSSO.attach进行登录参数的设置，如：设置绑定登录事件的HTML元素，接收token的登录接口URI。
		QSSO.attach('qsso-login', 'iuser/login/q');
		// attach函数会将HTMLid为qsso-login的元素onclick时自动去qsso登录，当用户用户点击上面的button，会跳到qsso登录页面,用户在qsso登录后将会把token值post到http://xxx.qunar.com/login.php上。
	</script>

	<!-- /container -->
	<!-- JQuery文件,务必在bootstrap.min.js 之前引入 -->
	<script
		src="${pageContext.request.contextPath}/js/jquery/jquery.min.1.11.2.js"></script>
	<!-- Bootstrap3的 JavaScript文件 -->
	<script
		src="${pageContext.request.contextPath}/js/bootstrap/bootstrap.min.js"></script>
	<!-- store.js 第三方本地存储控制  -->
	<script src="${pageContext.request.contextPath}/js/store.min.js"></script>
	<!-- 自己定义的js -->
	<%-- <script src="${pageContext.request.contextPath}/js/payfin/login.js"></script> --%>
</body>
</html>